// 记录登录信息
// https://baijiahao.baidu.com/s?id=1618794879569468435&wfr=spider&for=pc
import Vue    from 'vue'
import Vuex   from 'vuex'
import user   from './module/user'
import menu   from './module/menu'

Vue.use(Vuex);
/**
 * 创建Vuex实例
 * @use store.state.user.key
 * @use store.commit('MUTATIONS', payload)
 */
const store = new Vuex.Store({
	modules: {
        user,
        menu
    }
});
console.log('%c store.js', 'color:red');

// 导出store
export default store;

